package com.swpu.project.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

@RequestMapping("/hello")
//@PreAuthorize("@ex.hasAuthority('system:test:list')")
@PreAuthorize("hasAuthority('system:test:list1')")

    public String hello()
{
  return "hello";
}

@RequestMapping("/h1")
    String tr(@RequestParam(name = "t")String t,@RequestParam(name = "afafafafafafaf") String z)
{
    System.out.println(t);
return t+z;
}



}
